import {defHttp} from '/@/utils/http/axios';
import {PageParams} from "/@/api/model/baseModel";


enum Api {
  page = '/electronicGold/page',
  exportExcel = '/electronicGold/exportExcel'
}

export const electronicGoldPage = (pageParams: PageParams) =>
  defHttp.get({url: Api.page, params: pageParams}, {errorMessageMode: 'none'});


export const exportExcel = (params) =>
  defHttp.get({url: Api.exportExcel, params: params, responseType: 'blob'}, {isTransformResponse: false})
